define([
    'jquery',
    'underscore',
    'backbone',
    'text!template/alert.html'
], function($, _, Backbone, AlertTemplate) {
    return Backbone.View.extend({
        el: '[bb-place]',
        template: _.template(AlertTemplate),

        initialize: function(options) {
            this.$el.before(this.template(options));
        }
    });
});
